package rakuse7en.packet;

import java.io.Serializable;

public class MyPacket implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	// s 1
	// u 0
	private int TYPE;
	private UserData uData;
	private ServerData sData;
	
	public MyPacket(UserData uData) {
		this.TYPE = 0;
		this.uData = uData;
	}
	public MyPacket(ServerData sData) {
		this.TYPE = 1;
		this.sData = sData;
	}
	
	public UserData getuData() {
		return uData;
	}
	public ServerData getsData() {
		return sData;
	}
	public int getTYPE() {
		return TYPE;
	}
}
